import request from '@/utils/request'

export default ({
  fetchList(data) {
    return request({
      url: '/system/document/list',
      method: 'post',
      data
    })
  },
  getById(params) {
    return request({
      url: '/system/document/getById',
      method: 'get',
      params
    })
  },
  save(data) {
    return request({
      url: '/system/document/save',
      method: 'POST',
      data
    })
  },
  update(data) {
    return request({
      url: '/system/document/update',
      method: 'POST',
      data
    })
  },
  getSelectCondition(params) {
    return request({
      url: '/system/document/condition',
      method: 'get',
      params
    })
  },
  delete(params) {
    return request({
      url: '/system/document/delete',
      method: 'POST',
      params
    })
  },

})
